package icasue.net.protocol.http;

import icasue.net.base.annotations.Nullable;
import icasue.net.protocol.http.enums.HttpStatus;

import java.io.Serializable;
import java.util.Map;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2021/3/12 下午4:07
 * @UpdateDate:
 * @Description:
 */
public class HttpResponse<T> implements Serializable {
    private String version;
    private HttpStatus state;
    private Map<String,String> headers;
    @Nullable
    private T data;

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public HttpStatus getState() {
        return state;
    }

    public void setState(HttpStatus state) {
        this.state = state;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
